package cn.bisoft.java.bean.entity;

import java.io.Serializable;



/**
 * This is an object that contains data related to the AnteFrontInfoAccessories table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="AnteFrontInfoAccessories"
 */

public abstract class BaseAnteFrontInfoAccessories  implements Serializable {
	private static final long serialVersionUID = 1L;
	public static String REF = "AnteFrontInfoAccessories";
	public static String PROP_PUB_TIME = "pubTime";
	public static String PROP_INFO_ID = "infoId";
	public static String PROP_SIZE = "size";
	public static String PROP_PATH = "path";
	public static String PROP_ACCESSORIES_NAME = "accessoriesName";
	public static String PROP_URL = "url";
	public static String PROP_SEQ_NO = "seqNo";


	// constructors
	public BaseAnteFrontInfoAccessories () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseAnteFrontInfoAccessories (java.lang.Integer seqNo) {
		this.setSeqNo(seqNo);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseAnteFrontInfoAccessories (
		java.lang.Integer seqNo,
		java.lang.Integer infoId,
		java.lang.String accessoriesName,
		java.lang.Integer size,
		java.util.Date pubTime) {

		this.setSeqNo(seqNo);
		this.setInfoId(infoId);
		this.setAccessoriesName(accessoriesName);
		this.setSize(size);
		this.setPubTime(pubTime);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer seqNo;

	// fields
	private java.lang.Integer infoId;
	private java.lang.String accessoriesName;
	private java.lang.String path;
	private java.lang.String url;
	private java.lang.Integer size;
	private java.util.Date pubTime;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="assigned"
     *  column="seqNo"
     */
	public java.lang.Integer getSeqNo () {
		return seqNo;
	}

	/**
	 * Set the unique identifier of this class
	 * @param seqNo the new ID
	 */
	public void setSeqNo (java.lang.Integer seqNo) {
		this.seqNo = seqNo;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: InfoId
	 */
	public java.lang.Integer getInfoId () {
		return infoId;
	}

	/**
	 * Set the value related to the column: InfoId
	 * @param infoId the InfoId value
	 */
	public void setInfoId (java.lang.Integer infoId) {
		this.infoId = infoId;
	}



	/**
	 * Return the value associated with the column: AccessoriesName
	 */
	public java.lang.String getAccessoriesName () {
		return accessoriesName;
	}

	/**
	 * Set the value related to the column: AccessoriesName
	 * @param accessoriesName the AccessoriesName value
	 */
	public void setAccessoriesName (java.lang.String accessoriesName) {
		this.accessoriesName = accessoriesName;
	}



	/**
	 * Return the value associated with the column: Path
	 */
	public java.lang.String getPath () {
		return path;
	}

	/**
	 * Set the value related to the column: Path
	 * @param path the Path value
	 */
	public void setPath (java.lang.String path) {
		this.path = path;
	}



	/**
	 * Return the value associated with the column: URL
	 */
	public java.lang.String getUrl () {
		return url;
	}

	/**
	 * Set the value related to the column: URL
	 * @param url the URL value
	 */
	public void setUrl (java.lang.String url) {
		this.url = url;
	}



	/**
	 * Return the value associated with the column: size
	 */
	public java.lang.Integer getSize () {
		return size;
	}

	/**
	 * Set the value related to the column: size
	 * @param size the size value
	 */
	public void setSize (java.lang.Integer size) {
		this.size = size;
	}



	/**
	 * Return the value associated with the column: PubTime
	 */
	public java.util.Date getPubTime () {
		return pubTime;
	}

	/**
	 * Set the value related to the column: PubTime
	 * @param pubTime the PubTime value
	 */
	public void setPubTime (java.util.Date pubTime) {
		this.pubTime = pubTime;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof AnteFrontInfoAccessories)) return false;
		else {
			AnteFrontInfoAccessories anteFrontInfoAccessories = (AnteFrontInfoAccessories) obj;
			if (null == this.getSeqNo() || null == anteFrontInfoAccessories.getSeqNo()) return false;
			else return (this.getSeqNo().equals(anteFrontInfoAccessories.getSeqNo()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getSeqNo()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getSeqNo().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}